
const UserInfo = {   
    namespaced: true,
    state: () => ({
        sca06: '', //姓名
        abw02: '', //性别
        sca12: '',  //年龄
        abq02: '', //民族
        sca22: '',//身份证
        sca26: '',//移动电话
    }),
    mutations: {
      setUserInfo(state, payload) {
        state.sca06 = payload.sca06;
        state.abw02 = payload.abw02;
        state.sca12 = payload.sca12;
        state.abq02 = payload.abq02;
        state.sca22 = payload.sca22;
        state.sca26 = payload.sca26;
      }
    },
    actions: {
      updateUserInfo({ commit }, userInfo) {
        commit('setUserInfo', userInfo);
      }
    }
  };



export default UserInfo;